<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let per = {
      sex: '男',
      age: 21,
      hobby: '穿背带裤-唱跳-rap-打篮球',
      speak: function () {
        console.log('八嘎八嘎八嘎雅鹿')
      },
      eat: function (x, y) {
        console.log('吃饭')
        return x + y
      }
    }
    console.log(per.sex);
    console.log(per.age);
    console.log(per.hobby);
    per.speak()
    let sum = per.eat(10, 20)
    console.log(sum);

  </script>
</body>

</html>